
**************************************
* Appendix G
**************************************

use "/Users/zerenli1992/Dropbox/political_risk/replication_files/pc_df_2022test.dta" ,clear
rename pc pcc

lab var size "Size"
lab var pc_dummy  "Revolving Door"
lab var post2011  "Campaign Period"

g pc_post2011 = pc_dummy*post2011
lab var pc_post2011 "Revolving Door*Campaign Period"
lab var incmope_l "Revenue"



**************************************
* Table G1: Pre 2012 Analysis
**************************************

* set covariates
global covariates size  incmope_l npc cppcc cpc //

* specify panel variable
global full_spc    nocons  dec(3) addstat(Adjusted R-squared, e(r2_a))   lab ///noaster

reghdfe roa  pc_dummy if year <2012 ,  absorb(year symbol)  cluster(symbol) 
qui outreg2 using "$test/baseline.tex", replace $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y , Firm Controls, N , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa  pc_dummy  ${covariates}   if year <2012,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep( pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa  pc_dummy  i.ind_code_res#c.year ${covariates}  if year <2012 ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y,Province Specific Time Trend, N) 

reghdfe roa  pc_dummy  i.prov_code#c.year ${covariates}  if year <2012,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y, Sector Specific Time Trend, N,Province Specific Time Trend,Y)  

reghdfe roa  pc_dummy  i.ind_code_res#c.year  i.prov_code#c.year ${covariates}  if year <2012,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y, Province Specific Time Trend,Y)   

******************************************************
* Table G2: Before and During Campaign Comparsion
******************************************************
reghdfe roa  pc_post2011 pc_dummy ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", replace $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y , Firm Controls, N , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa  pc_post2011 pc_dummy  ${covariates}  ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep( pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, N, Province Specific Time Trend, N) 

reghdfe roa  pc_post2011 pc_dummy  i.ind_code_res#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y,Province Specific Time Trend, N) 

reghdfe roa  pc_post2011 pc_dummy  i.prov_code#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
qui outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y, Sector Specific Time Trend, N,Province Specific Time Trend,Y)  

reghdfe roa  pc_post2011 pc_dummy  i.ind_code_res#c.year  i.prov_code#c.year ${covariates} ,  absorb(year symbol)  cluster(symbol)
outreg2 using "$test/baseline.tex", append $full_spc keep(pc_dummy pc_post2011) addtext(Firm and Year FE, Y,Firm Controls, Y , Sector Specific Time Trend, Y, Province Specific Time Trend,Y)   

